﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace QRCode.Models
{
    public class SalesPromotion
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        public int LocationID { get; set; }
        public int PromotionTypeID { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string Total { get; set; }
        public string Code { get; set; }
        public string Image { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        public bool Active { get; set; }
    }

    public class SalesPromotionDBContext : DbContext
    {
        public DbSet<SalesPromotion> SalesPromotions { get; set; }
    }
}